Skip to content

Conversation

@GarmashAlex
Copy link
Contributor

Clear mnemonic_indexes for Trezor when hd_paths are specified, mirroring Ledger behavior. This avoids creating both a path-derived wallet and an index 0 wallet due to the default_value on --mnemonic-indexes. Root cause: with default indexes present, the macro created wallets from both hd_paths and indexes, producing duplicates for Trezor.

Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, makes sense, logic is inline with ledger check here

if let Some(paths) = &args.hd_paths {
if paths.len() > 1 {
eyre::bail!("Ledger only supports one signer.");
}
args.mnemonic_indexes = None;
}

@grandizzy grandizzy added this pull request to the merge queue Oct 24, 2025
Merged via the queue into foundry-rs:master with commit 8dadf61 Oct 24, 2025
15 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Oct 24, 2025
@rplusq rplusq mentioned this pull request Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants